<h1>Archives</h1>
<?php
$req = $bdd->query('SELECT * FROM articles ORDER BY titre LIMIT 5');
while ($donnees = $req->fetch())
{
	$calendrier=date_parse($donnees['date_creation']);
	//print_r ($calendrier);
	?>
	<p><span id="date-archive"><?php	echo $calendrier["day"].'-'.$calendrier["month"];	?></span>
	<a href="index.php?page=articles&cat=<?php echo $donnees['id']; ?>"><?php echo substr($donnees['titre'],0,25); ?></a></p>
	<?php
}
$req->closeCursor();
?>
<div class="menu">
	<a href="">Tous les articles</a>
</div>
